/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package src;

import java.io.Serializable;
import java.util.ArrayList;

/**
 *
 * @author Viktor
 */
public class Krouzek implements Serializable {
    private String nazev;
    private int hh_zac;
    private int mm_zac;
    private int hh_kon;
    private int mm_kon;
    private boolean[] tyden;
    private boolean zobrazen;
   // ArrayList<Zak> zvk;

    public Krouzek(String nazev, int hh_zac, int mm_zac, int hh_kon, int mm_kon) {
      //  zvk = new ArrayList<Zak>();
        this.nazev = nazev;
        tyden = new boolean[5];
        this.hh_zac = hh_zac;
        this.mm_zac = mm_zac;
        this.hh_kon = hh_kon;
        this.mm_kon = mm_kon;
        zobrazen = false;
        initTyden();
    }

    private void initTyden() {
        for(int i = 0; i < 5;i++){
            tyden[i] = false;
        }
    }
    public void nastavDen(int i ){
        if(i < 5){
          tyden[i] = true;   
        }
       
    }

    public int getHh_kon() {
        return hh_kon;
    }

    public int getHh_zac() {
        return hh_zac;
    }

    public int getMm_kon() {
        return mm_kon;
    }

    public int getMm_zac() {
        return mm_zac;
    }

    public String getNazev() {
        return nazev;
    }

    public boolean[] getTyden() {
        return tyden;
    }

    public void setTyden(boolean[] tyden) {
        this.tyden = tyden;
    }

    public boolean isZobrazen() {
        return zobrazen;
    }

    public void setZobrazen(boolean zobrazen) {
        this.zobrazen = zobrazen;
    }
    
    
}
